/**
 * Created by fanyongsheng on 2017/7/10.
 */
var _anychat = require('./anychat.js');
window.AnyChatSDK = _anychat.instance;

function log(msg){
    var myDate = new Date();//获取系统当前时间
    var hour = myDate.getHours()>9?myDate.getHours():'0'+myDate.getHours();
    var minutes = myDate.getMinutes()>9?myDate.getMinutes():'0'+myDate.getMinutes();
    var seconds = myDate.getSeconds()>9?myDate.getSeconds():'0'+myDate.getSeconds();

    console.log(msg);
    msg = '<p><span class="text-info">time：'+hour+':'+minutes+":"+seconds+"</span>&nbsp;&nbsp;&nbsp;&nbsp;"+msg+'</p>';
    var val = document.getElementById('log').innerHTML;
    document.getElementById('log').innerHTML = msg+val;
}

window.log = log;
